package com.iursp.validate.code;

import org.springframework.security.core.AuthenticationException;

import com.iursp.domain.result.ExceptionMsg;

public class ValidateCodeException extends AuthenticationException {
    private static final long serialVersionUID = -7525757620869234981L;

    @SuppressWarnings("unused")
	private String code;

    public ValidateCodeException(ExceptionMsg extensions) {
        super(extensions.getMsg());
        this.code = extensions.getCode();
    }

    public ValidateCodeException(String code, String message) {
        super(message);
        this.code = code;
    }

    public ValidateCodeException(String msg) {
        super(msg);
    }
}

